/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author dongyushi
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-7-24 下午9:35:29          dongyushi        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Entity
@Table(name = "TOPU_PLAY_ORDER")
public class TopuPlayOrder implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -4409488345845354575L;

    private Long id;
    private Long topuConfId;
    private Long orderby;
    private String userId;
    private Integer flag;

    /** default constructor */
    public TopuPlayOrder() {
    }

    /** minimal constructor */
    public TopuPlayOrder(Long id) {
        this.id = id;
    }

    /** full constructor */
    public TopuPlayOrder(Long id, Long topuConfId, Long orderby, String userId, Integer flag) {
        this.id = id;
        this.topuConfId = topuConfId;
        this.orderby = orderby;
        this.userId = userId;
        this.flag = flag;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "TOPU_PLAY_ORDER_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "TOPU_CONF_ID", precision = 18, scale = 0)
    public Long getTopuConfId() {
        return topuConfId;
    }

    public void setTopuConfId(Long topuConfId) {
        this.topuConfId = topuConfId;
    }

    @Column(name = "ORDERBY", precision = 18, scale = 0)
    public Long getOrderby() {
        return orderby;
    }

    public void setOrderby(Long orderby) {
        this.orderby = orderby;
    }

    @Column(name = "USER_ID", length = 128)
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Column(name = "FLAG", precision = 1, scale = 0)
    public Integer getFlag() {
        return flag;
    }
}
